package center.wxp.sentinel.config;

import com.alibaba.csp.sentinel.datasource.redis.config.RedisConnectionConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaopeng
 * @date 2021年06月23日 10:41
 * @description
 */
@Configuration
public class RedisConfig {
    String ruleKey = "limetKey";
    String channel = "1";
    @Bean
    public void redisConnectionConfig() {
        RedisConnectionConfig redisConnectionConfig = RedisConnectionConfig.builder()
                .withHost("localhost")
                .withPort(6379)
                .withPassword("123456")
                .withDatabase(1)
                .build();
    }
}
